package com.atguigu.springcloud.controller;

import com.atguigu.springcloud.service.IMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : leimingchao
 * @date Date : 2022年02月14日 10:17
 */
@RestController
public class SendMessageController {

    @Autowired
    private IMessageService iMessageService;

    @GetMapping(value = "/sendMessage")
    public String sendMessage() {
        return iMessageService.send();
    }
}
